/*
 *    Copyright (c) 2018-2025, waterx All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: waterx
 */

package com.example.tenant.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.example.tenant.Converter.CustomStringConverter;
import com.example.tenant.Converter.LongStringConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 岗位信息表
 *
 * @author fxz
 * @date 2022-03-26 12:50:43
 */
@Data
@ColumnWidth(10)
@TableName("sys_post")
@EqualsAndHashCode(callSuper = true)
public class SysPost extends Model<SysPost> {

    private static final long serialVersionUID = 1L;

    /**
     * 岗位ID
     */
    @TableId(value = "post_id", type = IdType.ASSIGN_ID)
    @ExcelProperty("post_id")
    private String postId;

    /**
     * 部门ID
     */
    @ExcelProperty("dept_id")
    private String deptId;

    /**
     * 岗位编码
     */
    @ExcelProperty("post_code")
    private String postCode;

    /**
     * 岗位名称
     */
    @ExcelProperty("post_name")
    private String postName;

    /**
     * 岗位排序
     */
    @ExcelProperty(value = "post_sort", converter = LongStringConverter.class)
    private Long postSort;

    /**
     * 岗位描述
     */
    @ExcelProperty("remark")
    private String remark;

    /**
     * 岗位级别
     */
    @ExcelProperty("post_level")
    private String postLevel;

    /**
     * 岗位职责
     */
    @ExcelProperty("post_resp")
    private String postResp;

    /**
     * 岗位状态
     */
    @ExcelProperty("post_status")
    private String postStatus;

    /**
     * 应用id
     */
    @ExcelProperty("client_id")
    private String clientId;

    /**
     * 创建人
     */
    @ExcelProperty(value = "create_by", converter = CustomStringConverter.class)
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty("create_time")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelProperty(value = "update_by", converter = CustomStringConverter.class)
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ExcelProperty("update_time")
    private Date updateTime;

    /**
     * 删除标记
     */

    @TableField(fill = FieldFill.INSERT)
    @ExcelProperty("del_flag")
    private String delFlag;

    /**
     * 租户id
     */
    @ExcelProperty(value = "tenant_id", converter = LongStringConverter.class)
    private Long tenantId;

}
